<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/template/common/header.jsp"%>
<div class="pageContent">
	<table class="table" width="100%" layoutH="50">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids"
					class="checkboxCtrl"></th>
				<th width="80">分类名称</th>
				<th width="20">状态</th>
				<th width="20">创建时间</th>
				<th width="20">更新时间</th>
				<th width="80">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${seedTasks }" var="seedTask">
				<tr target="seedTask" rel="${ seedTask.id}">
					<td><input name="ids" value="${seedTask.id }" type="checkbox">
					</td>
					<td>${seedTask.category.title}</td>
					<td><c:choose>
							<c:when test="${seedTask.status eq 1}">已添加</c:when>
							<c:when test="${seedTask.status eq 2}">开始执行</c:when>
							<c:when test="${seedTask.status eq 3}">已完成</c:when>
						</c:choose></td>
					<td><fmt:formatDate value="${seedTask.createDate }"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td><fmt:formatDate value="${seedTask.modifyDate }"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td><a title="查看${seedTask.id }"
						href="javascript:window.open('${base }/product!edit.action?id=${ product.id}')"
						class="btnView">查看</a> <a title="确定要删除该商品?" target="ajaxTodo"
						href="${base }/product!delete.action?id=${ product.id}"
						class="btnDel">关闭</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<cy:pagination pageBean="${pager }"
	pageUrl="${base }/product!list.action">
	<%@include file="/WEB-INF/template/common/pagination.jsp"%>
</cy:pagination>